<form action="" method="post">
    <div>
        客户ID：<input type="text" name="customer_id">
    </div>
<div>
    <select name="city"   onchange= "select_type('zhi','xiaoqu',this.options[this.options.selectedIndex].value)">
        @foreach($myusers as $myuser)
            <option value="{{ $myuser->city }}">{{ $myuser->username }}-{{ $myuser->mobile }}</option>
        @endforeach
    </select>
    <select name="zhi" id="zhi"   onchange= "select_2('xiaoqu',this.options[this.options.selectedIndex].value)">
        <option>请选择。。。</option>
    </select>
    <select name="xiaoqu" id="xiaoqu">
        <option>请选择。。。</option>
    </select>
</div>

<div>

</div>
    <div>
        <input type="submit" value="确定转移">
    </div>
</form>
<script src="{{ URL::asset('ad/js/jquery.js') }}"></script>
<script>
    function select_type(f,x,v){
        $.post('{{ URL::route('admin.customers.ajax_exchange') }}',{v:v},function(data){
            $('#'+f).html(data);
            $.post('{{ URL::route('admin.customers.ajax_xiaoqu_exchange') }}',{v:v},function(data){
                $('#'+x).html(data);
            });
        });
    }
    function select_2(x,v){
        $.post('{{ URL::route('admin.customers.ajax_xiaoqu_exchange2') }}',{v:v},function(data){
            $('#'+x).html(data);
        });
    }
</script>